package com.learn.service.impl;

import com.learn.service.BaseSearchService;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @author: YU.TAN
 * @date: 2023/7/3 23:23
 * @Description:
 */
@Service
public class BaseSearchServiceImpl <T> implements BaseSearchService<T> {

    @Resource
    private RestHighLevelClient restHighLevelClient;

    @Override
    public List<T> query(String keyword, Class<T> clazz) {
        return null;
    }

    @Override
    public List<Map<String, Object>> queryHit(String keyword, String indexName, String... fieldNames) {
        return null;
    }

    @Override
    public Page<Map<String, Object>> queryHitByPage(int pageNo, int pageSize, String keyword, String indexName, String... fieldNames) {
        return null;
    }

    @Override
    public void deleteIndex(String indexName) {

    }
}
